﻿@using System.Globalization
@using System.Web.Optimization
@using Gfw.Infrastructure.Stock.Enums
@model Gfw.Web.Models.Stock.CreateHistroyModel
@{
    ViewBag.Title = "创建GP";
    Layout = "~/Areas/Stock/Views/Shared/_StockLayoutContent.cshtml"; 
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <ul>
        <li>
            @Html.LabelFor(model => model.WholesaleCount)
        </li>
        <li>
            @Html.EditorFor(model => model.WholesaleCount)
            @Html.ValidationMessageFor(model => model.WholesaleCount)
        </li>
        <li>
            @Html.LabelFor(model => model.WholesaleType)
        </li>
        <li>
            @{
    var list = new List<SelectListItem>();
    list.Add(new SelectListItem() { Selected = true, Value = ((int)StockPublicType.Original).ToString(CultureInfo.InvariantCulture), Text = "原始G" });
    list.Add(new SelectListItem() { Selected = true, Value = ((int)StockPublicType.Tensile).ToString(CultureInfo.InvariantCulture), Text = "拉伸G" });
    list.Add(new SelectListItem() { Selected = true, Value = ((int)StockPublicType.Additional).ToString(CultureInfo.InvariantCulture), Text = "增发G" });
            }
            @Html.DropDownListFor(model => model.WholesaleType, list)
            @Html.ValidationMessageFor(model => model.WholesaleType)
        </li>
    </ul>
    <div class="button">
        @Html.ActionLink("取消", "CreateHistroy")
        <input type="submit" value="创建" onclick="this.disabled = true; this.form.submit();"/>
    </div>
  
}
